package com.cs.study.homework._0228;

public class Demo3 {
    public static void main(String[] args) {
        int id = 4;
        Season season = Season.findById(id);
        getSeason(season);


    }
    public static Season getSeason(Season season) {
        switch (season) {
            case SPRING -> System.out.println("春天");
            case SUMMER -> System.out.println("夏天");
            case AUTUMN -> System.out.println("秋天");
            case WINTER -> System.out.println("冬天");
        }
        return season;
    }
}
